from com.xunai.saas.example.Common import CommonRequest


class AcupointScanApi(CommonRequest):
    """
    穴位识别
    """

    def bodyList(self):
        """
        查询部位列表
        :return:
        """
        rs = super().get("/xunai-saas/saasApi/v1/acupoint/list")
        print(rs.json())

    def scan(self, bodyId, path, notifyUrl):
        """
        穴位识别
        :return:
        """
        body = {"bodyId": bodyId, "path": path, "notifyUrl": notifyUrl}
        rs = super().post("/xunai-saas/saasApi/v1/acupoint/findAcupointByParam", body)
        print(rs.json())


if __name__ == "__main__":
    api = AcupointScanApi()
    api.bodyList()
    api.scan('部位ID', "图像", "回调通知地址")
